package com.kgc.cgapi.pojo;

import com.kgc.cgapi.util.StatusUtil;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class CGDDPojo {
    private int id;
    private String code;
    private String info;
    private String cgbj_code;
    private int invoice_type;
    private int status;
    private String statusStr;

    private String create_date;
    private int create_id;
    private String create_name;

    private String modi_date;
    private int modi_id;
    private String modi_name;

    private String bili_date;
    private String get_date;

    private int uid;
    private String user_name;
    private int u_deptid;
    private String dept_name;

    private int get_num;
    private int num;
    private BigDecimal total;
    private BigDecimal wait_amount;
    private BigDecimal get_amount;
    private BigDecimal finish_amount;
    private BigDecimal settle_amount;
    private BigDecimal adv_amount;
    private BigDecimal use_amount;

    private int pro_id;
    private String pro_name;

    private String address;

    private List<CGDDInfo> list;

    private static final SimpleDateFormat FORMAT = new SimpleDateFormat("yyyy-MM-dd");

    @Override
    public String toString() {
        return "CGDDPojo{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", info='" + info + '\'' +
                ", cgxj_code='" + cgbj_code + '\'' +
                ", invoice_type=" + invoice_type +
                ", status=" + status +
                ", statusStr='" + statusStr + '\'' +
                ", create_date='" + create_date + '\'' +
                ", create_id=" + create_id +
                ", create_name='" + create_name + '\'' +
                ", modi_date='" + modi_date + '\'' +
                ", modi_id=" + modi_id +
                ", modi_name='" + modi_name + '\'' +
                ", bili_date='" + bili_date + '\'' +
                ", get_date='" + get_date + '\'' +
                ", uid=" + uid +
                ", user_name='" + user_name + '\'' +
                ", u_deptid=" + u_deptid +
                ", dept_name='" + dept_name + '\'' +
                ", get_num=" + get_num +
                ", num=" + num +
                ", total=" + total +
                ", wait_amount=" + wait_amount +
                ", get_amount=" + get_amount +
                ", finish_amount=" + finish_amount +
                ", settle_amount=" + settle_amount +
                ", adv_amount=" + adv_amount +
                ", use_amount=" + use_amount +
                ", pro_id=" + pro_id +
                ", pro_name='" + pro_name + '\'' +
                ", address='" + address + '\'' +
                ", list=" + list +
                '}';
    }

    public BigDecimal getSettle_amount() {
        return settle_amount;
    }

    public void setSettle_amount(BigDecimal settle_amount) {
        this.settle_amount = settle_amount;
    }

    public List<CGDDInfo> getList() {
        return list;
    }

    public void setList(List<CGDDInfo> list) {
        this.list = list;
    }

    public String getCgbj_code() {
        return cgbj_code;
    }

    public void setCgbj_code(String cgbj_code) {
        this.cgbj_code = cgbj_code;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public int getInvoice_type() {
        return invoice_type;
    }

    public void setInvoice_type(int invoice_type) {
        this.invoice_type = invoice_type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
        statusStr = StatusUtil.transStatusToStr(status);
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }

    public String getCreate_date() {
        return create_date;
    }

    public void setCreate_date(Date create_date) {
        this.create_date = FORMAT.format(create_date);
    }

    public int getCreate_id() {
        return create_id;
    }

    public void setCreate_id(int create_id) {
        this.create_id = create_id;
    }

    public String getCreate_name() {
        return create_name;
    }

    public void setCreate_name(String create_name) {
        this.create_name = create_name;
    }

    public String getModi_date() {
        return modi_date;
    }

    public void setModi_date(Date modi_date) {
        this.modi_date = FORMAT.format(modi_date);
    }

    public int getModi_id() {
        return modi_id;
    }

    public void setModi_id(int modi_id) {
        this.modi_id = modi_id;
    }

    public String getModi_name() {
        return modi_name;
    }

    public void setModi_name(String modi_name) {
        this.modi_name = modi_name;
    }

    public String getBili_date() {
        return bili_date;
    }

    public void setBili_date(Date bili_date) {
        this.bili_date = FORMAT.format(bili_date);
    }

    public String getGet_date() {
        return get_date;
    }

    public void setGet_date(Date get_date) {
        this.get_date = FORMAT.format(get_date);
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public int getU_deptid() {
        return u_deptid;
    }

    public void setU_deptid(int u_deptid) {
        this.u_deptid = u_deptid;
    }

    public String getDept_name() {
        return dept_name;
    }

    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
    }

    public int getGet_num() {
        return get_num;
    }

    public void setGet_num(int get_num) {
        this.get_num = get_num;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public BigDecimal getWait_amount() {
        return wait_amount;
    }

    public void setWait_amount(BigDecimal wait_amount) {
        this.wait_amount = wait_amount;
    }

    public BigDecimal getGet_amount() {
        return get_amount;
    }

    public void setGet_amount(BigDecimal get_amount) {
        this.get_amount = get_amount;
    }

    public BigDecimal getFinish_amount() {
        return finish_amount;
    }

    public void setFinish_amount(BigDecimal finish_amount) {
        this.finish_amount = finish_amount;
    }

    public BigDecimal getAdv_amount() {
        return adv_amount;
    }

    public void setAdv_amount(BigDecimal adv_amount) {
        this.adv_amount = adv_amount;
    }

    public BigDecimal getUse_amount() {
        return use_amount;
    }

    public void setUse_amount(BigDecimal use_amount) {
        this.use_amount = use_amount;
    }

    public int getPro_id() {
        return pro_id;
    }

    public void setPro_id(int pro_id) {
        this.pro_id = pro_id;
    }

    public String getPro_name() {
        return pro_name;
    }

    public void setPro_name(String pro_name) {
        this.pro_name = pro_name;
    }
}
